package ynu.ehall.po;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;

@Data    //lombok下的注解，可以为各属性自动生成get、set方法
@Entity  //实体管理器
public class User {
    @Id   //设置用户名为主键
    private Long userId;    //用userId表示用户名
    private String name;
    private Boolean sex;
    private Integer age;
    private String password;
    private String phone;
    private String email;
    private String job;
}
